//
//  RNMpaasWrapper.h
//  RNMpaas
//
//  Created by GJS on 2022/4/15.
//

#import <Foundation/Foundation.h>
#import <React/RCTBridgeModule.h>
#import <MPNebulaAdapter/MPNebulaAdapterInterface.h>

NS_ASSUME_NONNULL_BEGIN

@interface RNMpaasWrapper : NSObject

+ (instancetype)shareInstance;

@property (nonatomic, strong, nullable) id mpaas;

@property(nonatomic, strong) NSMutableDictionary *callbacks;

@property(nonatomic, assign) BOOL hideMPH5NavigationBar;

/**
 *  升级组件、Hotpatch等拉取Rpc，或埋点日志上报时的userId。接入应用有自己的账户系统，需要实现这个方法，返回相应的userId值。如果是未登录态，可以返回nil。
 *  默认返回 nil
 *  当前的userId
 */
@property(nonatomic, strong, nullable) NSString *userId;

@property(nonatomic, copy) RCTResponseSenderBlock onExit;

//保存回调函数
- (NSString *)saveCallback:(NSDictionary *)data context:(PSDContext *)context callback:(PSDJsApiResponseCallbackBlock)callback;
//回调小程序
- (void)callbackTiny:(NSString *)callbackid result:(NSDictionary *)result;

@end

NS_ASSUME_NONNULL_END
